package com.roncoo.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.roncoo.order.dao.UserDao;
import com.roncoo.order.entity.User;
import com.roncoo.order.service.UserService;
import org.springframework.stereotype.Service;

/**
 * (User)表服务实现类
 *
 * @author makejava
 * @since 2021-03-24 18:40:19
 */
@Service("userService")
public class UserServiceImpl extends ServiceImpl<UserDao, User> implements UserService {



    /**
     * 返回用户vip状态
     * @param uid
     * @return
     */
    @Override
    public int getOneUser(Integer uid) {
        User byId = this.getById(uid);
        return byId.getIsSvip();
    }
}
